
import requests
from bs4 import BeautifulSoup

# 一个简单的爬取

# r = requests.get('https://www.baidu.com')
# r.encoding='utf-8'
#
# soup = BeautifulSoup(r.text,'html.parser')
#
# a_list = soup.find_all('a')
# for a in a_list:
#     print(a.text,a.get('href'))












